enableCameraZoomClamping

abstract fun enableCameraZoomClamping(blocks: List<DesignBlock>, minZoomLimit: Float = -1.0F, maxZoomLimit: Float = -1.0F, paddingLeft: Float = 0.0f, paddingTop: Float = 0.0f, paddingRight: Float = 0.0f, paddingBottom: Float = 0.0f)

Continually ensures the zoom level of the camera in the active scene to be in the given range.

Parameters

blocks

the blocks for which the camera position is adjusted to, usually, the scene or a page.

minZoomLimit

the minimum zoom level limit when zooming out, unlimited when negative.

maxZoomLimit

the maximum zoom level limit when zooming in, unlimited when negative.

paddingLeft

optional padding in screen pixels to the left of the block. Only applied when the block is not a camera.

paddingTop

optional padding in screen pixels to the top of the block. Only applied when the block is not a camera.

paddingRight

optional padding in screen pixels to the right of the block. Only applied when the block is not a camera.

paddingBottom

optional padding in screen pixels to the bottom of the block. Only applied when the block is not a camera.